﻿namespace webapi.Helper
{
    public class PriceCalculateHelper
    {
        /// <summary>
        /// 计算订单总金额
        /// </summary>
        /// <param name="price"></param>
        /// <param name="quantity"></param>
        /// <returns></returns>
        public double PriceCalculate(double price, double quantity)
        {
            double totalPrice = (int)(price * quantity * 100) / 100d;   
            return totalPrice;
        }
    }
}
